package com.css.fxfzypg.modules.baseData.service;

import com.alibaba.fastjson.JSONObject;
import com.css.fxfzypg.modules.baseData.queryParams.KeyProjectQueryParams;
import com.css.fxfzypg.modules.baseData.entity.KeyProjectEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @author y1fan
 * @create 2022-08-24 10:31
 */
public interface KeyProjectService {


    void saveKeyProject(KeyProjectEntity keyProjectEntity);

    KeyProjectEntity getKeyProjectById(String id);

    void updateKeyProject(KeyProjectEntity keyProjectEntity);

    void deleteKeyProject(List<String> ids);

    Map<String, Object> getAllKeyProjectByParams(KeyProjectQueryParams queryParams, int curPage, int pageSize);

    void exportExcel(HttpServletResponse response, KeyProjectQueryParams queryParams);

    String importExcel(MultipartFile file, String dkpKeyType);

    Integer countByCounty(String province, String city, String county);
    Integer countByCity(String province, String city);
    Integer countByProvince(String province);

    Integer countByProvinceAndYear(String provinceName, String taskYear);
}
